<%@ Control Language="C#" AutoEventWireup="true" CodeFile="CategoryList.ascx.cs"
    Inherits="UserControls_CategoryList" %>
<asp:DataList ID="list" runat="server" onItemDataBound="list_ItemDataBound">
    <ItemTemplate>
                <asp:HyperLink ID="HyperLink1" runat="server" vlink="gray" Style="padding-left: 15px; text-decoration: none; color:gray; " 
        NavigateUrl='<%# "../Catalog.aspx?DepartmentID=" + Request.QueryString["DepartmentID"] + "&CategoryID=" + Eval("CategoryID") %>' 
        Text='<%# Eval("Name")+" "+Eval("NumberOfProducts")%>'>
        </asp:HyperLink>
        
    </ItemTemplate>
    <SelectedItemTemplate>
                        <asp:HyperLink ID="HyperLink1" runat="server" vlink="gray" Style="padding-left: 15px; text-decoration: none; color: #cc9e2c;"
        NavigateUrl='<%# "../Catalog.aspx?DepartmentID=" + Request.QueryString["DepartmentID"] + "&CategoryID=" + Eval("CategoryID") %>' 
        Text='<%# Eval("Name")+" "+Eval("NumberOfProducts")%>'>
        </asp:HyperLink>
    </SelectedItemTemplate>
    <HeaderTemplate>
    </HeaderTemplate>
    
</asp:DataList>